package com.ruoyi.common.core.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据同步对象 data_sync
 * 
 * @author ruoyi
 * @date 2025-01-23
 */
public class DataSync extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识ID */
    private Long syncId;

    /** 源表名 */
    @Excel(name = "源表名")
    private String sourceTable;

    /** 操作类型（-1: 删除, 0: 更新, 1: 新增） */
    @Excel(name = "操作类型", readConverterExp = "-1=删除,0=更新,1=新增")
    private String operationType;

    /** 记录ID */
    @Excel(name = "记录ID")
    private String recordId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openId;

    /** 菜品ID */
    @Excel(name = "菜品ID")
    private Long dishId;

    /** 是否已同步（0: 未同步, 1: 已同步） */
    @Excel(name = "是否已同步", readConverterExp = "0=未同步,1=已同步")
    private String status;

    public void setSyncId(Long syncId) 
    {
        this.syncId = syncId;
    }

    public Long getSyncId() 
    {
        return syncId;
    }

    public void setSourceTable(String sourceTable) 
    {
        this.sourceTable = sourceTable;
    }

    public String getSourceTable() 
    {
        return sourceTable;
    }

    public void setOperationType(String operationType) 
    {
        this.operationType = operationType;
    }

    public String getOperationType() 
    {
        return operationType;
    }

    public void setRecordId(String recordId)
    {
        this.recordId = recordId;
    }

    public String getRecordId()
    {
        return recordId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    public void setDishId(Long dishId) 
    {
        this.dishId = dishId;
    }

    public Long getDishId() 
    {
        return dishId;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("syncId", getSyncId())
            .append("sourceTable", getSourceTable())
            .append("operationType", getOperationType())
            .append("recordId", getRecordId())
            .append("userId", getUserId())
            .append("openId", getOpenId())
            .append("dishId", getDishId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
